{% extends '::base.html.twig' %}

{% block title %}
	RTSCraft
{% endblock %}

{% block stylesheets %}
        <link rel="stylesheet" href="{{ asset('bundles/rtscraftmain/css/style.css') }}" type="text/css" media="all" />
	<link rel="stylesheet" href="{{ asset('bundles/rtscraftmain/css/history.css') }}" type="text/css" media="all" />
	<link rel="stylesheet" href="{{ asset('bundles/rtscraftmain/css/admin.css') }}" type="text/css" media="all" />
{% endblock %}

{% block body %}
	<script src="{{ asset('js/script.js') }}" type="text/javascript"></script>
	<script type="text/javascript" src="{{ asset('bundles/rtscraftmain/js/utils/managementUtils.js') }}"></script>

	<script type="text/javascript" src="{{ asset('bundles/rtscraftmain/js/ckeditor/ckeditor.js') }}"></script>
	<script type="text/javascript" src="{{ asset('bundles/rtscraftmain/js/ajax.js') }}"></script>
	<script>
		submitForm('index');
	</script>

	<div id="header">
	  {% include 'RTSCraftMainBundle:Default:header.html.twig' %}
	</div>

	  {% if is_auth is defined %}
	  {% if is_auth == true %}
	  {% include 'RTSCraftMainBundle:Default:sidebar.html.twig' %}
	  {% endif %}
	  {% endif %}

	<div class="main" id="main">
	  {% if render is not defined %}
	  <script type="text/javascript">submitForm('home');</script>
	  {% else %}
	  <script type="text/javascript">submitForm("{{render}}");</script>
	  {% endif %}
	</div>

	<div id="footer">
		<a href="#" onclick="popup('login', '400', '200')">administration</a><br />
		- Powered by <b>Symfony</b> 2.0.11 & <b>RTSCraft</b> 1.0 -
	</div>

	<div>
	  {% include 'RTSCraftMainBundle:Default:advancedSearch.html.twig' %}
	</div>
{% endblock %}
